package com.ruoyi.industry.mapper;

import java.util.List;
import com.ruoyi.industry.domain.ProjectWarehouse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 项目-仓库Mapper接口
 *
 * @author MagicCube
 * @date 2023-05-08
 */
@Mapper
public interface ProjectWarehouseMapper
{
    /**
     * 查询项目-仓库
     *
     * @param id 项目-仓库主键
     * @return 项目-仓库
     */
    public ProjectWarehouse selectProjectWarehouseById(Long id);

    public List<ProjectWarehouse> selectProjectWarehouseByIds(@Param("ids") Long[] ids);

    /**
     * 查询项目-仓库列表
     *
     * @param projectWarehouse 项目-仓库
     * @return 项目-仓库集合
     */
    public List<ProjectWarehouse> selectProjectWarehouseList(ProjectWarehouse projectWarehouse);
    public List<ProjectWarehouse> selectProjectWarehouseListz(ProjectWarehouse projectWarehouse);

    /**
     * 新增项目-仓库
     *
     * @param projectWarehouse 项目-仓库
     * @return 结果
     */
    public int insertProjectWarehouse(ProjectWarehouse projectWarehouse);

    /**
     * 修改项目-仓库
     *
     * @param projectWarehouse 项目-仓库
     * @return 结果
     */
    public int updateProjectWarehouse(ProjectWarehouse projectWarehouse);

    /**
     * 删除项目-仓库
     *
     * @param id 项目-仓库主键
     * @return 结果
     */
    public int deleteProjectWarehouseById(Long id);

    /**
     * 批量删除项目-仓库
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProjectWarehouseByIds(Long[] ids);

    ProjectWarehouse selectProjectWarehouseByNumber(String spaceId);

    int updatePageViews(String spaceId);
}
